//
//  RequestManager.h
//  片刻
//
//  Created by xalo on 16/7/8.
//  Copyright © 2016年 许仕杰. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^RequestCompeleted)(NSData *data);
typedef void(^UpdateUI)();

@interface RequestManager : NSObject

+ (void)fetchDataWithUrl:(NSString *)url
               parameter:(NSDictionary *)dic
                  method:(NSString *)method
              compeleted:(RequestCompeleted)compeleted
                updateUI:(UpdateUI)update;


@end
